import request from '@/utils/request'

/**
 * 获取颜色配置
 */
export function getColorInsert() {
  return request({
    url: 'user/file/color/get',
    method: 'get',
  })
}

/**
 * 保存颜色配置
 * @param {*} data
 * @returns 
 */
export function saveColorInsert(data) {
  return request({
    url: 'user/file/color/insert',
    method: 'post',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
    data: {
      type: 2,
      data: data
    }
  })
}